﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_Exp : ServerBasePacket
    {
        private static Logger _log = Logger.getLogger( typeof( S_Exp ).FullName );

        /**
         * レベルと経験値データを送る。
         * @param pc - PC
         */
        public S_Exp( L1PcInstance pc )
        {
            writeC( Opcodes.S_OPCODE_EXP );
            writeC( pc.getLevel() );
            writeD( pc.getExp() );

            //		writeC(Opcodes.S_OPCODE_EXP);
            //		writeC(0x39);// level
            //		writeD(_objid);// ??
            //		writeC(0x0A);// ??
            //		writeH(getexp);// min exp
            //		writeH(getexpreward);// max exp
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override
        public String getType()
        {
            return "[S] S_Exp";
        }
    }
}